<%@include file="parts/Header.jsp" %>
<%--
    Document   : News
    Created on : 16/08/2011, 11:47:35 ص
    Author     : Ahmed
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html:html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>News</title>
        <link href="styles/Styles/style.css" rel="stylesheet" type="text/css" />
        <script src="styles/Scripts/Accordion.js" type="text/javascript"></script>
        <link rel="stylesheet" type="text/css" href="styles/Styles/Accordion.css" />


    </head>
    <body onload="resizePage()">
        <center>
            <div id="innerPageContainer">
                <table style="width: 100%" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <td class="firstList">News </td>
                        <td rowspan="3" id="innerPageCell" >

                            <ul class="menu collapsible">
                                <logic:iterate name="NewsBean"  property="events" id="data">
                                    <li class="title">
                                    <li class="expand">
                                        <a href="#">
                                            <table>
                                                <tr>
                                                    <td class="expandImage"></td>
                                                    <td><bean:write name="data" property="newsTitle" filter="false"/></td>
                                                </tr>
                                            </table> 
                                        </a>
                                        <ul class="acitem">
                                            <li>
                                                <table>
                                                    <tr>
                                                        <td style="vertical-align: top">
                                                            <html:link action="/news.do"  paramId="news" paramName="data" paramProperty="newsTitle">
                                                                <bean:write name="data" property="newsShortDescription" filter="false"/>
                                                            </html:link>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </li>
                                        </ul>
                                    </li>                
                                </logic:iterate>


                                <table style="width: 100%">
                                    <tr>
                                        <td class="title">
                                            <bean:write name="NewsBean" property="newsTitle"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="vertical-align: top;padding-bottom: 10px;">
                                            <img src="<bean:write name="NewsBean" property="newsImage"/>" alt="<bean:write name="NewsBean" property="newsTitle"/>">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="vertical-align: top">
                                            <bean:write name="NewsBean" property="newsDescription"/>
                                        </td>
                                    </tr>
                                </table>







                            </ul>
                        </td>
                    </tr>

                    <tr>
                        <td id="menuCell">

                            <ul class="nav">

                                <logic:iterate name="NewsBean" property="newsCat" id="titles">

                                    <li><html:link action="/catact.do" paramId="id" paramName="titles" paramProperty="newsCategoryId" ><bean:write name="titles" property="newsCategoryTitle"/></html:link></li>

                                </logic:iterate>
                            </ul>

                        </td>
                    </tr>

                    <tr>
                        <td class="lastList"></td>
                    </tr>

                    <tr>
                        <td colspan="2" class="footer">
                            <jsp:include page="parts/Footer.jsp"/>
                        </td>
                    </tr>

                </table>

            </div>

        </center>
    </body>
</html:html>

